package com.darren.euc.util.haqi.request;

import java.io.File;

/**
 * Created by Machenike-Pc on 2018/4/2.
 */
public class AddFaceRequest extends  HaquRequest{
    /**
     * userCode	String	是	三方用户的唯一标示
     imgFile	File	是	人脸图片文件
     appCode	String	是	三方应用的唯一标示，由我方分配
     signalChannelCode	Sring	否	开门的信号通路，用户指定用户进入哪道门
     name	String	否	用户姓名
     phone	String	否	用户手机号
     email	String	否	用户电子邮件
     address	String	否	用户地址
     level	String	否	用户等级
     remark	String	否	备注信息
     */
    private Long id;//添加人脸时返回的id值，用于标示我平台的用户
    private String userCode ="" ;
    private String imgUrl;
    private File imgFile;
    private String appCode ="";
    private String signalChannelCode="";
    private String name="";
    private String phone="";
    private String email="";
    private String address="";
    private String level="";
    private String remark="";


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }


    public String getAppCode() {
        return appCode;
    }

    public void setAppCode(String appCode) {
        this.appCode = appCode;
    }

    public String getSignalChannelCode() {
        return signalChannelCode;
    }

    public void setSignalChannelCode(String signalChannelCode) {
        this.signalChannelCode = signalChannelCode;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }


    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public File getImgFile() {
        return imgFile;
    }

    public void setImgFile(File imgFile) {
        this.imgFile = imgFile;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");

        sb.append("\"userCode\":\"")
                .append(userCode).append('\"');
        if(id!=null){
            sb.append(",\"id\":\"")
                    .append(id).append('\"');
        }
        sb.append(",\"imgUrl\":\"")
                 .append(imgUrl).append('\"');
        sb.append(",\"appCode\":\"")
                .append(appCode).append('\"');
        sb.append(",\"signalChannelCode\":\"")
                .append(signalChannelCode).append('\"');
        sb.append(",\"name\":\"")
                .append(name).append('\"');
        sb.append(",\"phone\":\"")
                .append(phone).append('\"');
        sb.append(",\"email\":\"")
                .append(email).append('\"');
        sb.append(",\"address\":\"")
                .append(address).append('\"');
        sb.append(",\"level\":\"")
                .append(level).append('\"');
        sb.append(",\"remark\":\"")
                .append(remark).append('\"');
        sb.append('}');
        return sb.toString();
    }
}
